package org.stvd.controller.common;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.stvd.controller.BaseController;

/**
 * @Title: TemplateController
 * @Description: 公共模板控制类
 * @author houzx
 * @date 2020年8月19日
 */
@Controller
@RequestMapping("template")
public class TemplateController extends BaseController{

    private String tmpURL = "/common/template/";
    
    /**
     * @Description: 富文本编辑器
     * @return
     */
    @GetMapping(value = "tinymce")
    public String onTinymceLoad(){
        return tmpURL + "TinymceTemplate.html";
    }
    
    /**
     * @Description: 附件上传
     * @return
     */
    @GetMapping(value = "fileupload")
    public String onFileUploadLoad(){
        return tmpURL + "FileUploadTemplate.html";
    }
    
    /**
     * @Description: 阿里云点播
     * @return
     */
    @GetMapping(value = "aliyunvod")
    public String onAliyunVodLoad(){
        return tmpURL + "AliyunVodTemplate.html";
    }
    
    /**
     * @Description: 请求日志
     * @return
     */
    @GetMapping(value = "logs")
    public String onRequestLogs(){
        return tmpURL + "LogsTemplate.html";
    }
    
    
    /**
     * @Description: 请求限流
     * @return
     */
    @GetMapping(value = "limit")
    public String onRequestLimit(){
        return tmpURL + "LimitTemplate.html";
    }
}
